package community.hospital.common;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.jetbrains.annotations.NotNull;

import javax.validation.constraints.Min;

/**
 * @Author：ydj
 * @Date：2023/1/16 16:48
 */
@Data
@NoArgsConstructor
public class BasePage {
    @NotNull("请传入页码")
    @Min(value = 1,message = "最小页码数为1")
    private Integer pageNumber;
    @NotNull("请传入页数")
    @Min(value = 1,message = "最小分页数为1")
    private Integer pageSize;

    private Integer state;
}
